package com.arges.controller;

import com.arges.pojo.TestPojo;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class Test {


    public static void main(String[] args) throws IllegalAccessException {
        List<String> list = new ArrayList<String>();
        for (int i = 0; i < 1000; i++) {
            list.add(i+"");
        }
        list.parallelStream().map(item -> {
            String name = new Thread().getName();
            System.out.println(name + item);
            Map<String, String> map = new HashMap<String, String>();
            map.put("item", item);
            return map;
        }).collect(Collectors.toList());
    }

    // 测试测试


}
